<style>
#change_avatar_wrapper{
	width:520px;
	float:left;
	
}
#fs_change_avatar{
width:450px;
margin:0px 0px 0px 50px;
padding:5px;
}

#fs_change_avatar img{
display:block;
margin-bottom:10px;
}
</style>
<?php
$image_path = "../assets/avatar/". $avatar;
	if ($avatar != '') {
       if (file_exists($image_path)) {
           $image_path = root_url('animus') . "assets/avatar/".$avatar;
       } else {
           $image_path = root_url('animus') . "assets/avatar/noavatar.png";
                    				}
    } else {
           $image_path = root_url('animus') . "assets/avatar/noavatar.png";
                    			 
    }?>

<div id="change_avatar_wrapper">
	<fieldset id="fs_change_avatar"> 
		<legend>Change Avatar</legend>
		<form id="form_change_avatar" name="form_change_avatar" method="post" enctype="multipart/form-data" action ="">
			<img src="<?php echo $image_path?>" width="150px"/>
			<input type="file" name="userfile" />
			<input type="submit" name="btn_change_avatar" value="Change"/>
		</form>
	</fieldset><!-- End #fs_change_avatar !-->

</div><!-- End #change_avatar_wrapper -->